package cn.gzjp.modules.logis.entity;

import org.hibernate.validator.constraints.Length;

import cn.gzjp.common.persistence.DataEntity;
import cn.gzjp.common.utils.excel.annotation.ExcelField;

/**
 * 行车线路Entity
 * @author zengcp
 * @version 2018-04-22
 */
public class LogisMapLine extends DataEntity<LogisMapLine> {
	
	private static final long serialVersionUID = 1L;
	private String openid;		// openid
	private String deliveryId;		// 发货单
	private String x;		// 经度
	private String y;		// 纬度
	
	public LogisMapLine() {
		super();
	}

	public LogisMapLine(String id){
		super(id);
	}

	@Length(min=0, max=32, message="openid长度必须介于 0 和 32 之间")
	@ExcelField(title="openid", align=2, sort=1)
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}
	
	@Length(min=0, max=32, message="发货单长度必须介于 0 和 32 之间")
	@ExcelField(title="发货单", align=2, sort=2)
	public String getDeliveryId() {
		return deliveryId;
	}

	public void setDeliveryId(String deliveryId) {
		this.deliveryId = deliveryId;
	}
	
	@Length(min=0, max=32, message="经度长度必须介于 0 和 32 之间")
	@ExcelField(title="经度", align=2, sort=3)
	public String getX() {
		return x;
	}

	public void setX(String x) {
		this.x = x;
	}
	
	@Length(min=0, max=32, message="纬度长度必须介于 0 和 32 之间")
	@ExcelField(title="纬度", align=2, sort=4)
	public String getY() {
		return y;
	}

	public void setY(String y) {
		this.y = y;
	}
	
}